import { createApp } from "vue";
import App from "@/App.vue";
//引入elementUI库
import ElementPlus from "element-plus";
//引入element-ui国际化配置
//@ts-ignore
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";
//引入主题颜色的样式
import "element-plus/theme-chalk/dark/css-vars.css";
//svg需要配置的代码
import "virtual:svg-icons-register";
//引入自定义插件对象：注册整个项目的全局组件
import gloalComponent from "@/components";
// console.log(gloalComponent);
//引入全局样式
import "@/styles/index.scss";

//引入路由
import router from "@/router/index";
//引入pinia仓库
import pinia from "@/store/index";
//引入路由鉴权
import "./permission";
const app = createApp(App);
//安装element-ui插件
app.use(ElementPlus, {
  locale: zhCn, //element-ui国际化配置
});
//安装自定义插件
app.use(gloalComponent);
app.use(router);
app.use(pinia);
app.mount("#app");
